﻿using UnityEngine;

namespace MFramework
{
    public enum LogLevel
    {
        Info,
        Warning,
        Error
    }

    public class Logcat
    {
        public static void Print(object msg, LogLevel level = LogLevel.Info)
        {
#if UNITY_EDITOR
            switch (level)
            {
                case LogLevel.Info:
                    Debug.Log(msg);
                    break;
                case LogLevel.Warning:
                    Debug.LogWarning(msg);
                    break;
                case LogLevel.Error:
                    Debug.LogError(msg);
                    break;
            }
#endif
        }
    }
}
